package com.youthburin.rmp.domain;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.youthburin.base.domain.BaseVO;

/**
 * The persistent class for the rmp_permission_group database table.
 * 
 */
@Entity
@Table(name = "rmp_permission_group")
public class RmpPermissionGroup extends BaseVO implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String code;

	private String name;

	// bi-directional many-to-one association to RmpPermission
	@OneToMany(mappedBy = "rmpPermissionGroup")
	private List<RmpPermission> rmpPermissions;

	public RmpPermissionGroup() {
	}

	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<RmpPermission> getRmpPermissions() {
		return this.rmpPermissions;
	}

	public void setRmpPermissions(List<RmpPermission> rmpPermissions) {
		this.rmpPermissions = rmpPermissions;
	}

}